package org.example.course.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.course.domain.Checkevaluation;

import java.util.List;

/**
 * @Classname CheckevaluationMapper
 * @Description TODO
 * @Date 2020/5/9 17:27
 * @Created by
 */

@Mapper
public interface CheckevaluationMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Checkevaluation record);

    int insertSelective(Checkevaluation record);

    Checkevaluation selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Checkevaluation record);

    int updateByPrimaryKey(Checkevaluation record);

    List<Checkevaluation> findAllByCourseId(@Param("courseId") Integer courseId);


    List<Checkevaluation> findAllByCheck(@Param("courseId") Integer courseId, @Param("check") String check);


    List<Checkevaluation> findAllByGraduationId(@Param("graduationId")Integer graduationId);


}